import request from "@/utils/request";


export function getWeekTime(data) {
  return request({
    url: 'time/list',
    method: 'get',
    params: data
  })
}

// 添加周报时间
export function addWeekTime(data) {
  return request({
    url: 'time',
    method: 'post',
    data
  })
}

export function getWeekReport(query) {
  return request({
    url: 'weekSummary/list',
    method: 'get',
    params: query,
  })
}

export function getWeekReportByTimeId(id) {
  return request({
    url: "weekSummary/" + id,
    method: 'get',
  })
}

export function getWeekTimeById(id) {
  return request({
    url: "time/" + id,
    method: 'get',
  })
}
